package com.itheima.reggie.entity.dto.dish;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.itheima.reggie.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 菜品修改数据传输dto
 *
 * @Name : DishUpdateDTO
 * @Author : WuQiang
 * @Date : 2022-08-15 15:34
 * @Description : 菜品修改数据传输dto
 */
@Data
@ApiModel(value = "菜品修改数据传输")
public class DishUpdateDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 菜品名称
     */
    @ApiModelProperty(value = "菜品名称")
    private String name;

    /**
     * 菜品分类id
     */
    @ApiModelProperty(value = "菜品分类id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId;

    /**
     * 菜品价格
     */
    @ApiModelProperty(value = "菜品价格")
    private BigDecimal price;

    /**
     * 图片
     */
    @ApiModelProperty(value = "菜品图片")
    private String image;

    /**
     * 描述信息
     */
    @ApiModelProperty("描述信息")
    private String description;

    /**
     * 口味相关信息
     */
    @ApiModelProperty("口味相关集合")
    private List<DishFlavor> flavors;
}
